/* buzzer.c */
#include "buzzer.h"

void buzzer_init(void)
{
    GPIO_SetPinsOutputLevel(BOARD_BUZZER_GPIO_PORT, 1u << BOARD_BUZZER_GPIO_PIN, false);
    GPIO_EnablePinsOutputDirection(BOARD_BUZZER_GPIO_PORT, 1u << BOARD_BUZZER_GPIO_PIN, true);
}

void buzzer_on(void)
{
    GPIO_SetPinsOutputLevel(BOARD_BUZZER_GPIO_PORT, 1u << BOARD_BUZZER_GPIO_PIN, true);
}

void buzzer_off(void)
{
    GPIO_SetPinsOutputLevel(BOARD_BUZZER_GPIO_PORT, 1u << BOARD_BUZZER_GPIO_PIN, false);
}

/* EOF. */

